<template>
	<view class="box">
		<!-- <video id="liveVideo" :src="videoSrc" autoplay></video> -->
	</view>
</template>

<script>
	import WebSocket from "@/common/webScoket.js"
	export default {
		data() {
			return {
				videoSrc: "rtmp://192.168.1.18:1935/prePublish/diao",
				scoketTask: null,
				timeoutObj: null,
				serverTimeoutObj: null,
				timeout: 10000,
				lockReconnect: false
			};
		},
		onLoad() {
			// new WebSocket('ws://192.168.1.18:8081/hbh')
		},
		methods: {
			
		}
	};
</script>

<style lang="scss" scoped>
	.box {
		height: 100vh;
	}

	video {
		width: 100%; // 设置视频宽度占满父容器
		height: 100%; // 设置视频高度占满父容器
	}
</style>